package com.ruoyi.ucar.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.ucar.domain.TOrderPayDetail;
import com.ruoyi.ucar.mapper.TOrderPayDetailMapper;
import com.ruoyi.ucar.service.ITOrderPayDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import lombok.AllArgsConstructor;

/**
 * 订单支付详情Service业务层处理
 *
 * @author ruoyi
 * @date 2025-07-25
 */
@Service
@AllArgsConstructor
public class TOrderPayDetailServiceImpl extends ServiceImpl<TOrderPayDetailMapper, TOrderPayDetail> implements ITOrderPayDetailService
{
    @Autowired
    private   TOrderPayDetailMapper tOrderPayDetailMapper;

    /**
     * 查询订单支付详情
     * @param id 订单支付详情主键
     * @return 订单支付详情
     */
    @Override
    public TOrderPayDetail selectTOrderPayDetailById(Long id)
    {
        return tOrderPayDetailMapper.selectTOrderPayDetailById(id);
    }

    /**
     * 查询订单支付详情列表
     * @param tOrderPayDetail 订单支付详情
     * @return 订单支付详情
     */
    @Override
    public List<TOrderPayDetail> selectTOrderPayDetailList(TOrderPayDetail tOrderPayDetail)
    {
        return tOrderPayDetailMapper.selectTOrderPayDetailList(tOrderPayDetail);
    }

    /**
     * 新增订单支付详情
     * @param tOrderPayDetail 订单支付详情
     * @return 结果
     */
@Override
    public int insertTOrderPayDetail(TOrderPayDetail tOrderPayDetail)
    {
    return tOrderPayDetailMapper.insert(tOrderPayDetail);

    }

    /**
     * 修改订单支付详情
     * @param tOrderPayDetail 订单支付详情
     * @return 结果
     */
@Override
    public int updateTOrderPayDetail(TOrderPayDetail tOrderPayDetail)
    {
    return tOrderPayDetailMapper.updateById(tOrderPayDetail);
    }

    /**
     * 批量删除订单支付详情
     * @param ids 需要删除的订单支付详情主键
     * @return 结果
     */
@Override
    public int deleteTOrderPayDetailByIds(Long[] ids)
    {
        return tOrderPayDetailMapper.deleteTOrderPayDetailByIds(ids);
    }

    /**
     * 删除订单支付详情信息
     * @param id 订单支付详情主键
     * @return 结果
     */
    @Override
    public int deleteTOrderPayDetailById(Long id)
    {
        return tOrderPayDetailMapper.deleteTOrderPayDetailById(id);
    }


}
